import axios from './axios'
// import { func } from 'electron-edge-js'

//获取季度
export function getQuarter(params) {
  return axios({
    url: '/quarter/quarter',
    params
  })
}

// 新增季度
export function postQuarter(params) {
  return axios({
    method: 'post',
    url: '/quarter/quarter',
    params
  })
}
//季度获取型号集合
export function getQuarterNum(data) {
  return axios({
    method: 'post',
    url: '/kinds-number/quarterListQuery',
    data
  })
}
//库存管理 输入型号查询
export function getNumber(data) {
  return axios({
    method: 'post',
    url: '/kinds-number/styleNumberListQuery',
    data
  })
}
//库存管理 季度查询型号
export function getQnumber(data) {
  return axios({
    method: 'post',
    url: '/kinds-number/styleNumberByQuarterIdListQuery',
    data
  })
}

// 查询默认显示季节
export function showQuarter() {
  return axios({
    method: 'post',
    url: '/quarter/show'
  })
}

// 季节转换(默认季节)
export function changeQuarter(params) {
  return axios({
    method: 'post',
    url: '/quarter/change',
    params
  })
}

//查询库存是否足够
export function isEnough(data) {
  return axios({
    method: 'put',
    url: '/manufacturer-out-total/renewRepertory',
    data
  })
}

// 季度转换(默认季度)
export function quarterChange(params) {
  return axios({
    method: 'post',
    url: '/quarterChange/change',
    params
  })
}

// 查询当前季度
export function getQuarterShow(params) {
  return axios({
    method: 'post',
    url: '/quarterChange/show',
    data: params
  })
}
